/// @description Insert description here
// You can write your code in this editor
kd--;
var selector = id;
if(kd<= 0 && device_mouse_check_button(0,mb_left))
{
	
	if position_meeting(gui_mouse_x,gui_mouse_y,selector)  && o_Mover2.var_joystick_active = false
	{
		kd = fullKd;
		pressed = false
		active();
	} 
} else {pressed = true}

if ( device_mouse_check_button(1,mb_left) && kd<= 0)
{
	
	if  position_meeting(device_mouse_x_to_gui(1),device_mouse_y_to_gui(1),selector) 
	{
		kd = fullKd;
		pressed = false
		active2();
	} 
}else {pressed = true}

if kd>= ((fullKd+2)* 3/4) spirit = 1
if kd>= ((fullKd+2)* 2/4) && kd< ((fullKd+2)* 3/4) spirit = 2
if kd>= ((fullKd+2)* 1/4) && kd< ((fullKd+2)* 2/4) spirit = 3
if kd< ((fullKd+2)* 1/4) spirit = 4




